<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" itemscope
	itemtype="http://schema.org/Article"
	xmlns:fb="https://www.facebook.com/2008/fbml">
<head
	prefix="og: http://ogp.me/ns# scyclub: 
                  http://ogp.me/ns/apps/scyclub#">
<meta name="google-site-verification" content="7-IGAPRwuZJUQtk5q9mPsIB-I0oyKtS9X-PEd9xAuqQ" />
<?php
echo $this->Html->charset('utf-8');
echo $this->Html->meta('logo.ico','/logo.ico',array('type' => 'icon'));
//echo $this->Html->meta(array('name' => 'robots', 'content' => 'noindex'));
//keyworld:
if(!isset($metakeyword))$metakeyword=$title_for_layout;
if(!isset($metadescription))$metadescription=$metakeyword;
echo $this->Html->meta('keywords',$metakeyword);
echo $this->Html->meta('description',$metadescription);
echo $this->Html->meta(array('itemprop'=>'name','content'=>$title_for_layout));
echo $this->Html->meta(array('itemprop'=>'description','content'=>$metadescription));
//for fb
echo $this->Html->meta(array('property'=>'og:site_name','content'=>$webConfig['site_name']));
echo $this->Html->meta(array('property'=>'fb:app_id','content'=>'494778310568489'));
if(isset($ogTitle))echo $this->Html->meta(array('property'=>'og:title','content'=>$ogTitle));
if(isset($ogType))echo $this->Html->meta(array('property'=>'og:type','content'=>$ogType));
if(isset($ogUrl))echo $this->Html->meta(array('property'=>'og:url','content'=>$this->Seo->link($ogUrl)));
if(isset($ogImage))echo $this->Html->meta(array('property'=>'og:image','content'=>$ogImage));
if(isset($ogDescription))echo $this->Html->meta(array('property'=>'og:description','content'=>$ogDescription));



//css
echo $this->Html->css('default');
if(isset($css)){
	$cssarr=explode(',', $css);
	foreach($cssarr as $k =>$v)
		echo $this->Html->css($v);
}
//js
echo $this->Html->script('common');
echo $this->Html->script('jquery');
//title

echo '<title>'.$title_for_layout.'</title>';
?>

</head>
<body>
	<div id="wrapper_outer">
		<div id="wrapper_inner">
			
			

			
			<div id="content">
				<div id="content_top">
					<div id="content_bottom">
						<div id="panel">
						<div style="float:right;margin-top: -40px;"><a href="http://www.facebook.com/happylife2012" class=""><img src="<?php echo $this->webroot.'img/Facebookicon.png'?>" /></a></div>
						<?php echo $content_for_layout?>
						
						
						<div class="cleaner"></div>
						</div>
					</div>
				</div>
				
				<?php echo $this->element('menu');?>	
				<div class="cleaner"></div>
				
			</div>
			
			
			<?php echo $this->element('header');?>	
			<div class="cleaner"></div>
			<?php echo $this->element('footer');?>			
						
		</div>
		<!-- end of wrapper_inner -->
	</div>
	<?php echo $this->element('sql_dump');
	//echo $this->Js->writeBuffer();
	?>
	
	<script type="text/javascript">
	//for image fix size
	$(function() {		
		$('.imageFix').one('load',function () {
			var bannerImageWidth=this.getAttribute('widthFix');
			var bannerImageHeight=this.getAttribute('heightFix');
			var newSize = new resizeImage(this.width,this.height,bannerImageWidth,bannerImageHeight);
			this.width=newSize.width;
			this.height=newSize.height;
			this.style.marginLeft=((bannerImageWidth-newSize.width)/2)+"px";
			this.style.marginTop=((bannerImageHeight-newSize.height)/2)+"px";			
			$(this).parent().parent().css('background','none');
			$(this).fadeIn();
		}).each(function() {
			  if(this.complete){ $(this).load()};
		});
	});
	<?php if(Configure::read('debug')==0){?>	
//for ga
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-888961-8']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

  <?php }?>
  

    
</script>

</body>
</html>
